package com.carSys.Controller;


import com.carSys.DTO.VehicleModelStatisticsDTO;
import com.carSys.Service.VehicleModelStatisticsDTOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/carsys/vehicleModel")
public class VehicleModelController {
    @Autowired
    private VehicleModelStatisticsDTOService vehicleModelStatisticsDTOService;

    @GetMapping("/getAllVehicleModelStatistics")
    public List<VehicleModelStatisticsDTO> getAllVehicleModelStatistics() {
        return vehicleModelStatisticsDTOService.getAllVehicleModelStatistics();
    }
}
